package com.lovejes.wloppor.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the T_BUSS_WORKITEM table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_BUSS_WORKITEM"
 */

public abstract class BaseTBussWorkitem  implements Serializable {

	public static String REF = "TBussWorkitem";
	public static String PROP_STATUS = "Status";
	public static String PROP_ETIME = "Etime";
	public static String PROP_LASTINFO = "Lastinfo";
	public static String PROP_OPPORID = "Opporid";
	public static String PROP_BTIME = "Btime";
	public static String PROP_REMARK = "Remark";
	public static String PROP_FLOWNODE = "Flownode";
	public static String PROP_USERID = "Userid";
	public static String PROP_ID = "Id";
	public static String PROP_ISAGREE = "Isagree";


	// constructors
	public BaseTBussWorkitem () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTBussWorkitem (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String opporid;
	private java.lang.String userid;
	private java.util.Date btime;
	private java.util.Date etime;
	private java.lang.String status;
	private java.lang.String isagree;
	private java.lang.String remark;
	private java.lang.String flownode;
	private java.lang.String lastinfo;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: OPPORID
	 */
	public java.lang.String getOpporid () {
		return opporid;
	}

	/**
	 * Set the value related to the column: OPPORID
	 * @param opporid the OPPORID value
	 */
	public void setOpporid (java.lang.String opporid) {
		this.opporid = opporid;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: BTIME
	 */
	public java.util.Date getBtime () {
		return btime;
	}

	/**
	 * Set the value related to the column: BTIME
	 * @param btime the BTIME value
	 */
	public void setBtime (java.util.Date btime) {
		this.btime = btime;
	}



	/**
	 * Return the value associated with the column: ETIME
	 */
	public java.util.Date getEtime () {
		return etime;
	}

	/**
	 * Set the value related to the column: ETIME
	 * @param etime the ETIME value
	 */
	public void setEtime (java.util.Date etime) {
		this.etime = etime;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: ISAGREE
	 */
	public java.lang.String getIsagree () {
		return isagree;
	}

	/**
	 * Set the value related to the column: ISAGREE
	 * @param isagree the ISAGREE value
	 */
	public void setIsagree (java.lang.String isagree) {
		this.isagree = isagree;
	}



	/**
	 * Return the value associated with the column: REMARK
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: REMARK
	 * @param remark the REMARK value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: FLOWNODE
	 */
	public java.lang.String getFlownode () {
		return flownode;
	}

	/**
	 * Set the value related to the column: FLOWNODE
	 * @param flownode the FLOWNODE value
	 */
	public void setFlownode (java.lang.String flownode) {
		this.flownode = flownode;
	}



	/**
	 * Return the value associated with the column: LASTINFO
	 */
	public java.lang.String getLastinfo () {
		return lastinfo;
	}

	/**
	 * Set the value related to the column: LASTINFO
	 * @param lastinfo the LASTINFO value
	 */
	public void setLastinfo (java.lang.String lastinfo) {
		this.lastinfo = lastinfo;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.wloppor.domain.TBussWorkitem)) return false;
		else {
			com.lovejes.wloppor.domain.TBussWorkitem tBussWorkitem = (com.lovejes.wloppor.domain.TBussWorkitem) obj;
			if (null == this.getId() || null == tBussWorkitem.getId()) return false;
			else return (this.getId().equals(tBussWorkitem.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}